package io.github.mayubao.kotlintest

import org.junit.Assert
import org.junit.Assert.assertEquals
import org.junit.Test

class Day7_JavaKtCallEachOther{



    @Test
    fun testKtCallJava(){
        val javaObj : HelloJava = HelloJava()
        val helloMsg = javaObj.hello("github")
        assertEquals("HelloJava :github", helloMsg)
    }

    @Test
    fun testJavaCallKt(){
        val helloMsg = JavaCallKtTest.test("github")
        assertEquals("HelloKT :github", helloMsg)
    }
}